package com.wangweixiong.role.service.impl;

import com.wangweixiong.role.dao.UserDao;
import com.wangweixiong.role.service.UserService;
import com.wangweixiong.utils.DaoFactory;

public class UserServiceImpl implements UserService {
    private UserDao userDao;
    @Override
    public Integer findUserIdByPhonePassword(String phone, String password) {
        DaoFactory<UserDao> userDaoFactory = new DaoFactory();
        userDao =userDaoFactory.getDaoTransaction(UserDao.class);
        Integer id = userDao.findUserIdByPhonePassword(phone, password);
        return id;

    }
}
